<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>赔付</title>
<link type="text/css" rel="stylesheet" href="../css/index.css" />
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js "></script>
<script src="../js/util/jquery-1.7.2.min.js"></script>
</head>
<script type="text/javascript">
function showfile(){
	$("#customerpic").get(0).click();
}
function volidate(){
	if($("#name").val()==""){
		alert("姓名不能为空!");
		return false;
	}
	if($("#phone").val()==""){
		alert("手机号不能为空!");
		return false;
	}
	if($("#license").val()==""){
		alert("车牌号不能为空!");
		return false;
	}
	if($("#customerpic").val()==""){
		alert("请上传图片!");
		return false;
	}else{
		$("#form").submit();
	}
}
</script>
<body>
	
	<!--图片-->
	<div class="page_item">
		<div class="page_item_pic">
			<img src="../images/page_pic.jpg" />
		</div>
		<div class="page_item_bg"></div>
		<div class="page_item_text">一款真正以小博大的玻璃保修产品</div>
	</div>
	<div class="page_Top">赔付信息单</div>
	<form action="/customer/peifu" method="post" id="form" enctype="multipart/form-data">
		<input type="hidden" id="iscompensation" name="isCompensation" value="1">
		<div class="page_name mb5">
			<h2>姓&nbsp;&nbsp;名</h2>
			<input name="name" id="name" type="text" />
		</div>
		<div class="page_name mb5">
			<h2>手&nbsp;&nbsp;机</h2>
			<input name="phone" id="phone" type="text" />
		</div>
		<div class="page_name mb5">
			<h2>车&nbsp;&nbsp;牌</h2>
			<input name="license" id="license" type="text" />
		</div>
		<div style="padding: 2% 0 2% 5%;">
			<input type="button"  style="width:45px;height:45px;border:0px;background:url(../images/photo.png) no-repeat;" onclick="showfile()">
		</div>
		<input type="file" name="customerpic" id="customerpic" style="display:none;">
		<div class="button mt2" onclick="volidate()">确定</div>
	</form>
</body>
</html>